package com.qst.crop.controller;

import com.github.pagehelper.PageInfo;
import com.qst.crop.common.Result;
import com.qst.crop.dao.reportTableDao;
import com.qst.crop.entity.reportTable;
import com.qst.crop.service.reportTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author : ZTH
 * @Date: 2025/7/8 15:12
 * @Description:
 */

@RestController
@RequestMapping("/table")
@CrossOrigin
public class reportTableController {

    @Autowired
    reportTableService reportTableService;

    @GetMapping("/All/{pageNum}")
    public Result<PageInfo> selectAll(@PathVariable("pageNum") Integer pageNum){
        PageInfo<reportTable> res = reportTableService.selectAll(pageNum);
        return new Result(true, 20000, "查询成功", res);
    }
}
